package it.zqdszb;

import android.app.Application;

import java.util.HashMap;


/**
 * Created by wcy on 2017/3/14.
 */

public class MyApplication extends Application {
    public static MyApplication instance;
    public  boolean start=false;
    public HashMap<String, Integer> mapMethods = new HashMap<>();
    @Override
    public void onCreate() {
        super.onCreate();
        start=true;
        instance=this;
    }

    public static MyApplication getInstance() {
        return instance;
    }

    @Override
    public void onTerminate() {
        start=false;
        instance=null;
        super.onTerminate();
    }
}
